home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / comm2 / termsorc.lha / Extras / Source / gtlayout-source.lha / LTP_BackFillRoutine.c < prev    next >
C/C++ Source or Header  |  1995-09-25  |  942b  |  31 lines

  1. /*  GadTools layout toolkit
  2. **
  3. **  Copyright © 1993-1995 by Olaf `Olsen' Barthel
  4. **  Freely distributable.
  5. */
  6.  
  7. #include "gtlayout_global.h"
  8.  
  9. VOID __asm __saveds
  10. LTP_BackfillRoutine(register __a0 struct Hook *Hook,register __a1 struct LayerMsg *Bounds,register __a2 struct RastPort *RPort)
  11. {
  12.     LayoutHandle *Handle = (LayoutHandle *)Hook->h_Data;
  13.  
  14.     BltBitMap(&Handle->BackfillBitMap,0,0,RPort->BitMap,Bounds->Bounds.MinX,Bounds->Bounds.MinY,Bounds->Bounds.MaxX - Bounds->Bounds.MinX + 1,Bounds->Bounds.MaxY - Bounds->Bounds.MinY + 1,0xC0,~0,NULL);
  15. /*
  16.     struct LayoutHandle            *Handle = (struct LayoutHandle *)Hook -> h_Data;
  17.     struct RastPort __aligned      RastPort;
  18.  
  19.     CopyMem(RPort,&RastPort,sizeof(struct RastPort));
  20.  
  21.     RPort = &RastPort;
  22.  
  23.     RPort -> Layer = NULL;
  24.  
  25.     SetAPen(RPort,Handle -> BackgroundPen);
  26.     SetDrMd(RPort,JAM1);
  27.  
  28.     RectFill(RPort,Bounds -> Bounds . MinX,Bounds -> Bounds . MinY,Bounds -> Bounds . MaxX,Bounds -> Bounds . MaxY);
  29. */
  30. }
  31.